package com.lagou.config;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by seemygo on 2020/11/13.
 */
public class Configuration {

    //封装了sqlMapperConfig配置文件信息和mapper.xml配置信息
    private DataSource dataSource;

    //封装了sql配置信息  key值是namespace.id
    private Map<String,MapperStatement> mapperStatementMap=new HashMap<>();

    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public Map<String, MapperStatement> getMapperStatementMap() {
        return mapperStatementMap;
    }

    public void setMapperStatementMap(Map<String, MapperStatement> mapperStatementMap) {
        this.mapperStatementMap = mapperStatementMap;
    }
}
